Method and apparatus for data encryption

ABSTRACT

A method and apparatus for use in encrypting and decrypting digital communications converting an initial block to final block based on freely selectable control information and secret key information having double the length of prior art keys and maintaining compatibility with the prior art encryption system.

The instant application is a divisional application and claims priority benefit of application Ser. No. 09/893,461 now U.S. Pat. No. 7,251,326 filed Jun. 29, 2001 by the inventor herein, the entirety of which is incorporated herein by reference.

BACKGROUND OF THE INVENTION

The invention is directed to encrypting and decrypting blocks of digital data, and more specifically, to a cipher method and device for the block-by-block conversion of a first digital block into a second digital block using at least one freely selectable control block, using an improved block cipher with double the key length and significantly increased cryptographic strength while still providing a mode for inter-operability with prior art systems.

The rapidly growing use of digital communication systems in commerce has spurred the need for cryptographic systems which are secure against popular “cryptoanalysis” or cracking techniques at least for a sufficient length of time. Prior art systems such as Massey, et al. U.S. Pat. No. 5,214,703 use a block cipher device which is suitable both for the encryption of plain text blocks and for the decryption of ciphertext blocks.

The prior art system of Kurdziel, et al. U.S. Pat. No. 6,108,421, which is commonly owned and has inventors in common with the present application, is directed to a scaleable block cipher device which is customizable and not vulnerable to standard cryptoanalysis techniques.

It is known to use multiple encryption to provide robust and enhanced security of the encrypted data. However, such multiple encryption schemes have disadvantages. Multiple encryption schemes require multiple iterations through a cryptographic system. In the case of duplicate hardware blocks, this doubles or triples the gate count and power consumption in hardware renderings. In cases where execution of a single block is repeated, the maximum speed that the cryptographic system can operate at will be reduced to one-half or one-third depending on the number of iterations required.

Additionally, multiple encryption schemes require that a cipher method not be a mathematical function known as a “group”. If a cipher method is a group, no security enhancement is obtained by using it in a multiple encryption scheme. The significance of this is that it is often impossible to conclusively prove a cryptographic system is not a group. Indeed, a cryptographic system that approximates the behavior of a group, to even a slight degree will suffer security vulnerabilities when used in a multiple encryption scheme.

Thus, there is a need for block cipher device which is scaleable and customizable and providing the all the enhanced cryptographic strengths of a multiple encryption scheme, but without the severe disadvantages associated with multiple encryption.

Accordingly, it is an object of the present invention to provide a novel scaleable block cipher device that is secure against available cryptanalysis or cracking techniques.

It is another object of the present invention to provide a novel block cipher device which provides enhanced security while maintaining compatibility with the prior art cipher devices.

It is still another object of the present invention to provide a novel block cipher device having double the cryptographic strength without a proportional increase in gate count of hardware renderings.

These and many other objects and advantages of the present invention will be readily apparent to one skilled in the art to which the invention pertains from a perusal of the claims, the appended drawings, and the following detailed description of the preferred embodiments.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a high level block diagram of a block cipher device of the present invention.

FIG. 2 is a schematic diagram of the block cipher device shown in FIG. 1.

FIG. 3 is a schematic diagram of a key scheduling unit for use with the block cipher shown in FIG. 2.

FIG. 4 illustrates a communication system using an embodiment of the present invention in Block Cipher Feedback Mode (BCFM).

FIG. 5 illustrates a communication system using an embodiment of the present invention in Minimum Error Propagation Mode (MEP).

FIG. 6 illustrates a communication system using an embodiment of the present invention in Self-synchronizing Cipher Feedback Mode (SSCFB).

DESCRIPTION OF PREFERRED EMBODIMENTS

With reference to FIG. 1, a block cipher device 100 is non-recursive and may include an input unit (not shown), nine encryption stages 1-8 and 12, an output unit (not shown), and a key scheduling unit 9.

The input unit and output unit assemble and buffer input and output data to and from the block cipher device 100. The structure of the input unit and output unit generally depends on an application (e.g., serial or parallel). The input unit and output unit are not unique to the block cipher device 100.

The block cipher device receives three input variables, X, Z₁, and Z₉ and produces an output variable, Y. X is the primary traffic input to the block cipher device 100 and Y is the primary traffic output. Z₁ and Z₉ may be externally applied variables. Z₉ may be a secret “Key” variable which is input to the block cipher device 100 via a secure channel (e.g., a courier with sealed cover) prior to encryption or decryption. Z₁ (or “customer algorithm modification” variable) and subunits of Z₁ (i.e., Z₂, Z₃, Z₅ and Z₆) are operated on in the first, second, third, fourth and fifth units 1, 2, 3, 4 and 5 of the block cipher device 100. The output Y of the block cipher device 100 is a unique function of the primary traffic X the Key variable Z₉ and the variable Z₁.

With continued reference to FIG. 1, each encryption stage has at least a 64-bit 1/O space. Encryption stages 1, 5, 6 and 8 consist of modular arithmetic logic. Stages 1, 5 and 8 perform modular additions and stage 6 performs a modular cubing operation. Each stage employs a different modulus. Stage 7 is a non-invertable “Mid Transform”. In addition, stages 1, 5, 6, 7 and 8 can not be segmented into a set of lower level operations. These design features make the Block Cipher Device secure against popular “Cryptanalysis” or cracking techniques.

Stages 2 and 4 are “nibble swapping” blocks. These blocks allow the structure of the algorithm to be changed based on an externally applied input, Z₁. Stage 3 is a customizable Substitution/Expansion block. This allows a custom operation with inputs W₂ and Z₃ and output W₃ to be inserted into the Block Cipher Device structure. This allows unique algorithm variants to be implemented. The structure of block 3 is not arbitrary and must meet the requirements of secure cipher design. Custom Substitution/Expansion block designs are disclosed only to the intended end user.

An input unit 10 assembles and buffers input data to the block cipher device 100 and the output unit 11 assembles and buffers output data from the block cipher device 100.

Encryption stage 12, like stages 1, 5 and 8, performs a modular addition operation. Key scheduling unit 9 accepts an externally applied input variable, Z₉, and deterministically generates three pseudo random bit patterns, Z₄, Z₇, and Z₈. These patterns are used as operands for blocks 12, 5 and 8 respectively.

To facilitate the description, FIGS. 2, 3, 4 and 5 illustrate 64 bit block implementations. 64 bit blocks are used only as an example. Generally, in 64 bit block implementations, each unit includes at least a 64 bit input/output space. A block cipher device of the present invention having any input or output size can be designed by appropriately scaling the size of block cipher device operations.

With reference to FIG. 2, the first unit 1 performs a modulo 2 addition (Exclusive-Or) on primary traffic input X with variable Z₁ resulting in first unit 1 output W₁.

The second unit 2 performs a nibble swap operation. The second unit 2 segments W₁ into 8 pairs of nibbles; each nibble holding 4 bits. The second unit 2 transposes each segment based on Z₂ (e.g., bits 0-7 of Z₁) resulting in second unit 2 output W₂. For example, when the value of bit “0” in Z₂ is equal to binary “1” then the order of the nibbles pair “0” will be transposed. Likewise, if bit “0” in Z₂ is equal to binary “0” then the order is left unchanged. The order of each nibble pair will be determined by the value of the corresponding bit in Z₂. The value of bit 0 controls the order of nibble pair 0, the value of bit 1 the order of nibble pair 1 continuing through to bit 7 which controls the order of nibble pair 7.

The third unit 3 is a custom unit providing a custom substitution and expansion operation. The custom operation with inputs W₂ and Z₃ and output W₃ may be inserted into the block cipher device 100 in the form of a look-up table. Z₃ may be bits 24 through 31 of Z₁. Providing a custom unit allows unique system variants to be designed and provided while meeting the requirements of secure cipher design. For example, the customized substitution or expansion operation of a look-up table is only disclosed to intended end users.

The fourth unit 4 may be another nibble swap operation where W₈ is segmented into 16 nibbles. Z₅ (for example, bits 24 through 31 of Z₁) controls the re-ordering of W₈ in a slightly different manner than explained for the second unit 2. For example, when the value of bit “8” in Z₅ is equal to a binary “0” then the first nibble in the pair will be written to the first position in the high order segment of W₄ and the second nibble will be written to the first position in the low order segment of W₄. When the value of bit “8” in Z₅ is equal to a binary “1” then the two nibbles will be transposed before being written to W₄. As with the second unit 2, the re-ordering of each nibble pair will be determined by a corresponding bit in Z₅.

The fifth unit 5 performs a modulo addition operation. W₄ and Z₇ are operands of the fifth unit 5. W₄ is the output of the fourth unit 4 and Z₇ is an output from the key scheduler unit 9. The modulus q of the operation is determined using Z₆ by the following relation: q=2¹²⁸ −Z ₆  (1) Z₆ may be bits 33 through 64 of Z₁.

The sixth unit 6 performs a modular cubing operation. In other words, W₅ is raised to the third power modulo p and the result is designated as W₆. The modulus p is determined by the following relation: p=2¹²⁵ −X  (2) The variable X is chosen such that the greatest common denominator between the order of the operation “3” and (p−1) is equal to 1. This is captures in the following equation: GCD(3,p−1)=1  (3)

The seventh unit 7 performs a non-invertible operation such as an operation known as a mid transform. The input to the operation, W₆, is 128 bits in length and the output of the operation, W₇, is 64 bits in length. The mid transform simply maps bits 64 bits of the input to a 64 bit output. For example, the mid transform may map bits 30 through 93 of W₆ to bits 0 through 63 of W₇. The rest of the bits in W₆ are discarded.

The eighth unit 8 performs another modulo addition operation. W₇ and Z₈ are operands of this unit. W₇ is an output from the seventh unit 7 and Z₈ is an output from the Key Scheduler 9. The modulus of the operation is chosen as 2⁶⁴. The output of this stage is the output of the block cipher device and is designated as Y₁.

Although specific values are specified for moduli of the first, fifth, sixth, and eighth units 1, 5, 6, and 8, the objective of the block cipher device will be satisfied by a range of choices. It is required, however, that the constraint of equ. 3 be satisfied and that a unique modulus be used in each stage. The “modulo” units 1, 5, 6, and 8 along with “non-invertible” unit 7 are not segmentable into a set of lower level operations.

With reference to FIG. 3, The key scheduler unit 9 comprises a first function unit 13, a second function unit 16, a third function unit 15, a fourth function unit 18, a fifth function unit 22, a first shift register 14, a second shift register 17, a first mod 2 add logic gate 19, a second mod 2 add logic gate 20, and a third mod 2 add logic gate.

The key scheduling unit 9 processes key variable Z₉ to produce variables Z₄, Z₇, and Z₈. These variables are used during encryption and decryption. Z₁₀ and Z₁₁, are deterministic functions, h, of the higher and lower halves of key variable Z₉. Z₁₀ and Z₁₁ are the outputs of the third function unit 15 and fourth function unit 18, respectively, and are input to shift register 14 and shift register 17, respectively. Each of these registers is shifted to the right one bit at a time until its contents have been completely recirculated. With each shift, the least significant bit in each register is mod 2 added to the output of its associated function unit, the first function unit 13 or the second function unit 16. The result is moved into the most significant bit position of each register. When the contents of the first shift register 14 and the second shift register 17 have been completely processed, it is output as variables Z₇ and Z₁₃, respectively. Z₇ becomes one of three pseudo random outputs of the key scheduling unit 9. Z₁₃ is modulo 2 added to Z₇ to produce pseudo random output Z₄. In addition, Z₁₃ is input to fifth function unit 22 to produce variable pseudo random output Z₈.

The first function unit 13 and the second function unit 16 are custom lookup tables. They map at least 6 one bit inputs to a single one bit output. Each of the inputs to the first function unit 13 and the second function unit 16 is a “tap” connected to an individual bit position in the first shift register 14 and the second shift register 17, respectively. The tap locations can be arbitrarily chosen with the following constraint. No tap can be connected to either the least significant or to the most significant bit positions on shift register 14 and shift register 17. The structure of the first function unit 13 and the second function unit 16 are not arbitrary and must meet the requirements of secure cipher design. Note that the first function unit 13 and the second function unit 16 can be independently specified. However, as described below, the first function unit 13 must be set equal to the second function if the block cipher 100 is to operate in a mode compatible with the prior art block cipher described in U.S. Pat. No. 6,108,421. The first function unit 13 and the second function unit 16 may be customized and disclosed only to the intended end user.

The fifth function unit 22 performs a bit-wise mod 2 add without carry of the higher and lower order halves of Z₁₃ to produce Z₈.

The third function unit 15 and the fourth function unit 18 perform a bit-wise mod 2 add without carry of each of each half of key variable Z₉ and a custom bit pattern of equal length, producing variables Z₁₀ and Z₁₁. Note that a third function unit 15 and the fourth function unit 18 can be independently specified. However, as described below the third function unit 15 must be set equal to the fourth function unit 18, if the block cipher 100 is to operate in a mode compatible with the prior art block cipher described in U.S. Pat. No. 6,108,421. The value of the custom bit pattern is disclosed only to the intended end user.

With reference to FIG. 2, the ninth unit 12 is a modulo addition stage. It adds the output W₃ of the third unit to Z₄ from the key scheduling unit 9 to produce output W₈. Outputs Z₇ and Z₈ are used as inputs to the fifth unit 5 and the eighth unit 8, respectively.

A significant feature of the key scheduling unit 9 is that it uses a key variable, Z₉, which is twice the length of the key variable of the prior art system of U.S. Pat. No. 6,108,421 and therefore offers significantly increased cryptographic strength. In addition, when a symmetric key variable (i.e. upper half and lower half are equal) is input, then Z₄ will evaluate to zero. This negates any effect of encryption block 12. In fact, when a symmetric key variable is input, all operations will evaluate such that the block cipher device 9 will produce the same output for a given input as the prior art block cipher of U.S. Pat. No. 6,108,421. Significant, equipment can be designed to use the present embodiment of block cipher 100 with double the key length having significantly increased cryptographic strength while still providing a mode for inter-operating with equipment using prior art block ciphers.

When required, the value of the original key variable Z₉ can be recovered. Variables Z₇ and Z₁₃ are reloaded into the first shift register 14 and the second shift register 17, respectively. Each register is shifted to the left one bit at a time until its contents have been completely re-circulated. With each shift, the most significant bit in each register is mod 2 added to the outputs of the first function unit 13 and the second function unit 16. The result is moved into the least significant bit position. When the contents of the first shift register 14 and the second shift register 17 have been completely processed, each is input to the third function unit 15 and the fourth function unit 18, respectively. In the third function unit 15 and the fourth function unit 18, the same custom bit pattern is bit-wise mod 2 added to reproduce the upper and lower halves of Z₉.

This permits an original encryption key to be recovered for other cryptographic operations, for example key wrapping (key encryption). Alternately, a copy of the original key may be kept in an auxiliary register. However, this would require a 256 bit auxiliary storage register which would add to the gate count of a hardware rendering.

The block cipher device may be operated in various modes such as a self-synchronizing cipher feedback mode (SSCFB), a minimum error propagation (or counter) mode (MEP), or a block cipher feedback mode (BCFB).

With reference now to FIG. 4 illustrating a BCFB mode, a block of unencrypted data or “Plain Text” (PT) is applied to the input of the encrypter 500 labeled PT_(E). PT_(E) is then modulo 2 added to a block of “Key Stream” KS. KS represents the output of the block cipher device 100-1. CT represents the resulting block (i.e., cipher text). CT is output at the port labeled CT_(E) and is then transmitted over a channel 200. In the next iteration, CT is fed back as input to the block cipher device 100-1. The block cipher device processes the fed back block to produce a new block of KS. KS is then combined with the next block of PT and the encryption process continues. At the decrypter 600, received CT is represented by CT_(D). CT_(D) is combined with a block of KS to produce as output a block of recovered plain text PT_(D). The CT_(D) block is simultaneously applied to the input of the block cipher device 100-2. The block cipher device 100-2 uses the CT_(D) block as input to produce another block of KS. This KS block is used to process the next block of CT_(D). This mode is intended for relatively error free communication channels.

With reference now to FIG. 5 illustrating a MEP mode, unencrypted data or “Plain Text” PT is applied to the input of the encrypter 500 labeled PT_(E). PT_(E) is then modulo 2 added to a block of KS to produce a block of cipher text. CT is output at a port labeled CT_(E) and is then transmitted over the channel 200. For a next iteration, encrypter counter 300-1 is incremented and the output of the counter 300-1 is input to the block cipher device 100-1. The block cipher device 100-1 processes to produce a new block of KS. The new block of KS is then combined with the next block of PT and the encryption process continues. At the decrypter 600, received CT is represented by CT_(D). CT_(D) is combined with a block of KS to produce as output a block of recovered plain text PT_(D) and decrypter counter 300-2 is incremented. The block cipher device 100-2 uses the output of the counter to produce another block of KS. This KS block is used to process the next block of CT_(D). This mode is intended for noisy or error prone communication channels. A toggled bit error on the channel will likely result in only a one bit error on PT_(D). In other words, in this mode the cryptographic system will likely have only one bit of error extension.

With reference now to FIG. 6 illustrating a SSCFB mode, unencrypted data or “Plain Text” (PT) is applied one bit at time to the input labeled PT_(E). Each PT_(E) bit is modulo 2 added to a bit of KS to produce a bit of cipher text CT. Encryption continues until another iteration is initiated. Another iteration may begin when either the entire block of KS is consumed or when the pattern detector 400-1 is triggered. The pattern detector 400-1 continually monitors CT for a specific bit sequence and when the sequence is detected a new iteration is triggered. Because CT appears statistically random, this mechanism will initiate a new iteration at pseudo-random intervals. When a new iteration is initiated, all remaining KS is purged from the key buffer 401-1 and the most recent bit block of CT, CT_(E), is input to the block cipher device 100-1. The block cipher device 100-1 uses the most recent block as input to produce another block of KS. The new block of KS is stored in the key buffer 401-1 and is used to continue the encryption process. At the decrypter 600, the received CT is applied one bit at time to input labeled CT_(D). Each CT_(D) bit is modulo 2 added with a bit of KS to produce a bit of recovered “Plain Text” as output PT_(D). The CT bit stream is simultaneously applied to the input buffer 402-2 (CB1) of the block cipher device 100-2. When either the input buffer 402-2 becomes full or the pattern detector 400-1 triggers, the following will occur:

-   -   1) the key buffer 401-2 is purged;     -   2) the most recent block of CT, CT_(E), is input to the block         cipher device 100-2;     -   3) the block cipher device uses the most recent block of CT to         produce a new block of KS; and     -   4) the new block of KS is stored in the key buffer 401-2.         The block cipher device 100-2 continues processing and CT_(D)         continues to be shifted into input buffer 402-2 until another         iteration is initiated. This mode is intended for communication         channels that are subject to synchronization errors. In this         mode, a communication system will be able to automatically         recover from loss cryptographic and block boundary         synchronization.

To operate in any of the modes shown in FIGS. 3-6, the encrypter 500 and the decrypter 600 must first be initialized such that their internal states are all identical. Initialization may be obtained using an initialization vector “IV” which is generated on the encrypter side and is used to initialize all internal states of the encrypter. The IV is then transmitted over the channel 200 to the decrypter 600. Using the IV, all internal states of the decrypter 600 are initialized to the same values.

ADVANTAGES AND SCOPE OF THE INVENTION

The method of the present invention offers the many advantages including twice the cryptographic strength without a proportional increase in the gate count of hardware renderings. This is extremely significant in that operational parameters, such as heat dissipation and power consumption increase proportionally with gate count. Other parameters such as data rate and production yield will generally be inversely proportional to gate count.

The method is also more robust cryptographically. It does not suffer from the strength vulnerabilities associated with other approaches, most notably, multiple encryption schemes.

Moreover, the method of the present invention provides the above mentioned and other advantages while maintaining backward interoperability with less robust systems of the prior art such as disclosed in U.S. Pat. No. 6,108,421, referenced above.

While preferred embodiments of the present invention have been described in the foregoing, it is to be understood that the embodiments described are illustrative only and the scope of the invention is to be defined solely by the appended claims when accorded a full range of equivalence, many variations and modifications naturally occurring to those of skill in the art from a perusal hereof. 

1. A block cipher hardware device used in encrypting and decrypting information in a cryptographically secured digital communication system, the block cipher device comprising: plural encryption stages that are computationally a function of an input data block, a control data block, a key data sub-block, and a key scheduler for randomizing the key data sub-block, the key scheduler further comprising: a first shift register; a first means for randomizing a portion of the key data block using the said first shift register; a first modulo two summing combiner for serially combining a serial output from the first shift register and the serial output from said first randomizing means to provide a first combined data output; a first key data sub-block derived from the contents of said first shift register; a second shift register; a second means for randomizing a portion of the key data block using the said second shift register; a second modulo two summing combiner for serially combining the serial output from the second shift register and the serial output from said second randomizing means to provide a second combined data output; a second key data sub-block derived from the contents of the second shift register; a third modulo two summing combiner for combining said first key data sub-block and said second key data sub-block to produce a third key data sub-block; a first function unit that is computationally a function of the second key data sub-block for providing a fourth key data sub-block; and circuit means for providing said first, third and fourth key data sub-blocks to different ones of said plural encryption stages.
 2. The block cipher hardware device of claim 1 wherein both said first and second randomizing means includes a selectively customized look-up table.
 3. The block cipher hardware device of claim 2 wherein the customized look-up table of said first and second means for randomizing are identical. 